package se.teamscape.server.db;

import java.util.List;

import se.teamscape.shared.model.Model;
import se.teamscape.shared.rpc.DBQuery;

/**
 * Interface for interaction with a datastore/database.
 * 
 * @author Andreas Borglin
 * 
 */
public interface Datastore {

    Model getModel(String encodedKey, String className);

    List<Model> getModelsByQuery(DBQuery query);

    Model saveModel(Model model);

    void createTestEntities();
}
